// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.fileSystem;

public final class FileOpenMode {
    public static final int NONE = 0;
    public static final int READ = 1;
    public static final int WRITE = 2;
    public static final int OPEN = 4;
    public static final int CREATE = 8;
    public static final int STREAM = 16;
    public static final int CREATE_AND_WRITE = 10;
    public static final int OPEN_AND_READ = 5;

    public static String toStringMode(int bits) {
        StringBuilder stringBuilder = new StringBuilder();
        if ((bits & 1) != 0) {
            stringBuilder.append('r');
        }

        if ((bits & 2) != 0) {
            stringBuilder.append('w');
        }

        return stringBuilder.toString();
    }
}
